<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <!--
      This test has dependencies on specific file layouts relative to the executable.
      It also sets specific loader environment variables.
    -->
    <RequiresProcessIsolation>true</RequiresProcessIsolation>
    <!-- The test cannot be run twice in the same process since it moves a native dll that it uses for pinvoke later -->
    <UnloadabilityIncompatible>true</UnloadabilityIncompatible>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="DllImportPathTest.cs" />

    <CLRTestBashEnvironmentVariable Include="LD_LIBRARY_PATH" Value="$LD_LIBRARY_PATH:$%28pwd)/Subdirectory" />
  </ItemGroup>
  <PropertyGroup>
    <PathEnvSetupCommands><![CDATA[
      mkdir Subdirectory
      ]]></PathEnvSetupCommands>
    <CLRTestBashPreCommands>$(CLRTestBashPreCommands);$(PathEnvSetupCommands)</CLRTestBashPreCommands>
  </PropertyGroup>
  <ItemGroup>
    <CMakeProjectReference Include="CMakeLists.txt" />
  </ItemGroup>
</Project>
